// 引入公共方法
import './public.js';
// 打开应用
const robot = require("robotjs");
// 鼠标移动插件引用
const mouse = robot.getMousePos();
const waitTime = 0;
// 延时函数
const delayFn = (time) => {
    return new Promise((res, rej) => {
        setTimeout(() => {
            res()
        }, time);
    })
}
const mainScript = async () => {
    await delayFn(waitTime);
    console.log("Mouse is at x:" + mouse.x + " y:" + mouse.y);
    // 打开工作台
    await delayFn(500);
    robot.moveMouse(530, 570);
    robot.mouseClick();
    // 打开汇报
    await delayFn(500);
    //Left click!
    
    // robot.mouseClick();
}
mainScript()